package com.ilioili.appframe;

import bean.Student;
import util.sql.JsonUtil;
import android.os.Bundle;

public class JsonAndBean extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Student std = new Student();
		std.name = "Hunter";
		std.num = "080510331";
		std.score =100;
		std.sex = 1;
		JsonUtil ju = new JsonUtil();
		System.out.println(ju.getJson(std, 0, true));
		System.out.println(ju.getJson(std, 1, false));
		System.out.println(ju.getObj(Student.class, ju.getJson(std, 0, false), 0));
	}
}
